import { apiClient } from './client';
import type { PaginationParams, PaginatedResponse } from '../../types/api';
import type { IList } from '../../types/notice';

export const noticeApi = {
  // Get notice list
  getNoticeList: async (params: PaginationParams): Promise<PaginatedResponse<IList>> => {
    return apiClient.get('/api/v1/notice/list', { params });
  },

  // Get popup notice list
  getPopupNoticeList: async (params: PaginationParams): Promise<PaginatedResponse<IList>> => {
    return apiClient.get('/api/v1/notice/pop_list', { params });
  },
};
